import http from "./request";
// 获取购物车数据
function getCartList(){
	return http.get('/api/v1/shop_carts')
}
// 新增购物车
function addCart(product,amount,price){
	return http.post('/api/v1/shop_carts',{product,amount,price})
}
// 删除购物车
function delCart(id){
	return http.delete('/api/v1/shop_carts/'+id)
}
export {getCartList,addCart,delCart}